package com.insigma.yanwenlong.bookkeeping.service;

import java.sql.SQLException;
import java.util.List;

import com.insigma.yanwenlong.bookkeeping.dao.TypeDao;
import com.insigma.yanwenlong.bookkeeping.dao.TypeDaoImpl;
import com.insigma.yanwenlong.bookkeeping.pojo.Type;

public class TypeServiceImpl implements TypeService {
	private TypeDao typeDao = new TypeDaoImpl();
	@Override
	public List<Type> findAllBigTypes(int direction) throws SQLException {
		return typeDao.findAllBigTypes(direction);
	}

	@Override
	public List<Type> findAllSmallTypes(int id,int direction) throws SQLException {
		return typeDao.findAllSmallTypes(id,direction);
	}

}
